<div class="panel panel-inverse" data-sortable-id="table-basic-4">
    <h4 class="panel-title">课程文件列表</h4>
    <br>
    <div class="panel-heading">
        <li>
            <a href="javascript:getData('${rc.contextPath}/course/file/add/','${shiroUserHelper.getCurrentShiroUser().parentMenuSource.name}')"><i
                    class="fa fa-plus m-r-5"></i>上传文件</a></li>
    </div>
</div>

<div class="panel-body">
    <div class="table-responsive">
        <table class="table table-striped table-bordered">
            <thead>
            <tr>
                <th>文件名</th>
                <th>文件描述</th>
                <th>下载次数</th>
                <th>创建时间</th>
                <th>修改时间</th>
                <th>最终操作人</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <#list files as ct>
            <tr>
                <td><a href="${rc.contextPath}/file/download?filePath=${ct.filePath}&id=${ct.id}">${ct.fileName}</a></td>
                <td>${ct.fileDiscrib}</td>
                <td>${ct.fileDownloadCount}</td>
                <td>${ct.createTime}</td>
                <td>${ct.updateTime}</td>
                <td>${ct.actor.accountName}</td>
                <td>
                    <div class="btn-group m-r-5 m-b-5">
                        <a id="deleteFile" href="javascript:getConfirmData('确定删除该文件吗?','${rc.contextPath}/file/delete/${ct.id}','${shiroUserHelper.getCurrentShiroUser().parentMenuSource.name}')"><i
                                class="fa fa-minus m-r-5"></i>删除</a>
                    </div>
                </td>
            </tr>
            </#list>
        </table>
    </div>
</div>
</div>

